package com.pan.dao.coupon;

import com.pan.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;

@Mapper
public interface CouponSelectDao{
    Coupon selectById(Long id);
    Coupon selectByImg(String img);
    Coupon selectByName(String name);
    Coupon selectByCreateAdmin(Long createAdmin);
    Coupon selectByUserLimit(Integer userLimit);
    Coupon selectByGrowthLimit(Long growthLimit);
    Coupon selectByScorePrice(Integer scorePrice);
    Coupon selectByAmount(Double amount);
    Coupon selectByPublishCount(Integer publishCount);
    Coupon selectByReceiveCount(Integer receiveCount);
    Coupon selectByUseCount(Integer useCount);
    Coupon selectByCreateDate(Timestamp createDate);
    Coupon selectByStartDate(Timestamp startDate);
    Coupon selectByEndDate(Timestamp endDate);
    Coupon selectByNote(String note);
}